package io.renren.service;

import com.alibaba.fastjson.JSONArray;
import io.renren.entity.DemandManagementEntity;

import java.util.List;
import java.util.Map;

/**
 * 行政用人需求管理
 * 
 * @author zhangheng
 * @email zh_123shmily@163.com
 * @date 2017-07-11 17:19:09
 */
public interface DemandManagementService {
	
	DemandManagementEntity queryObject(Integer id);
	
	List<DemandManagementEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(DemandManagementEntity demandManagement);
	
	void update(DemandManagementEntity demandManagement);
	
	void delete(Integer id);
	
	void deleteBatch(Integer[] ids);

	void approve(DemandManagementEntity demandManagement,String username);

	void reject(DemandManagementEntity demandManagement,String username);

    List<Map<String,Object>> choosePerson(JSONArray ids);

	int selectedEmp(JSONArray params);
}
